// 项目环境选择 

// const ambient = 'prod' // 线上环境
// const ambient = 'dev' // 测试环境
const ambient = 'ip' // 本地运行


const publics = {
	api_base_url: '',
	img_url: '',
	h5_url: '',
	type: '',
	api_timeout: 30000,
	app_source: "h5",
	app_version: "1.0.0",
	app_id: 'wx0e62672d01c248c9', //成都
};


// 成都
publics.app_id = 'wx0e62672d01c248c9'
if (ambient === 'prod') {
	console.log('当前正式环境>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>')
	publics.type = '正式'
	publics.api_base_url = 'https://cd.api.yingzhu.net'
	publics.img_url = 'https://cd.h5.yingzhu.net'
	publics.h5_url = 'https://cd.h5.yingzhu.net'
} else if (ambient === 'dev') {
	console.log('当前测试环境>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>')
	publics.type = '测试'
	publics.api_base_url = 'http://9530c02.r25.cpolar.top'
	publics.img_url = 'http://9530c02.r25.cpolar.top'
	publics.h5_url = 'https://gyh.dev.yingzhu.net'
} else if (ambient === 'ip') {
	console.log('当前ip环境>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>')
	publics.type = 'ip'
	publics.api_base_url = 'http://71ea67c4.r25.cpolar.top'
	publics.img_url = 'http://71ea67c4.r25.cpolar.top'
	publics.h5_url = 'http://192.168.1.9:5173'
} else {
	console.error('环境配置错误,请检查！')
};


export default publics